Skip to content

Commit e9dfa11

Browse files
committed
feat: add cool button thing(probably doesn't work)
1 parent 0906624 commit e9dfa11

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

guide/Interactions/buttons.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ async def button(ctx):
3434

3535
bot.run("TOKEN") # Run the bot
3636
```
37+
it should give the following output:
38+
39+
<DiscordMessages>
40+
<DiscordMessage :bot="true" author="Guide Bot" avatar="red">
41+
<template #interactions>
42+
<DiscordInteraction author="Guide Man" avatar="green" :command="true">ping</DiscordInteraction>
43+
</template>
44+
This is a button!
45+
<template #actions>
46+
<DiscordButtons>
47+
<DiscordButton type="primary">😎 Click me!</DiscordButton>
48+
<DiscordButtons>
49+
</template>
50+
</DiscordMessages>
51+
3752

3853
As you can see, we create a class called `View` that [subclasses](#oop) [`discord.ui.View`](https://docs.pycord.dev/en/master/api.html#discord.ui.Button).
3954

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "guide",
3-
"version": "0.0.1",
4-
"description": "Pycord documentation",
3+
"version": "0.0.2",
4+
"description": "Imagine a place.. where you can learn how to add more features to your Pycord bot",
55
"main": "index.js",
66
"authors": {
77
"name": "Matteu",

0 commit comments

Comments
 (0)