Browse Source

Update README.md

pull/1958/head
Quin Lynch GitHub 3 years ago
parent
commit
41b4686b5e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions
  1. +10
    -9
      README.md

+ 10
- 9
README.md View File

@@ -108,15 +108,16 @@ Theres a new field in all `SendMessageAsync` functions that takes in a `MessageC
```cs
var builder = new ComponentBuilder()
.WithSelectMenu(new SelectMenuBuilder()
.WithCustomId("id_2")
.WithPlaceholder("This is a placeholder")
.AddOption(
label: "Option",
value: "value1",
description: "Evan pog champ",
emote: Emote.Parse("<:evanpog:810017136814194698>")
)
.AddOption("Option B", "value2", "Option B is poggers");
.WithCustomId("id_2")
.WithPlaceholder("This is a placeholder")
.AddOption(
label: "Option",
value: "value1",
description: "Evan pog champ",
emote: Emote.Parse("<:evanpog:810017136814194698>")
)
.AddOption("Option B", "value2", "Option B is poggers")
);
await Context.Channel.SendMessageAsync("Test selection!", component: builder.Build());
```


Loading…
Cancel
Save