Add URL button to ctc2 about
This commit is contained in:
parent
05527a74a3
commit
f5cba3ce3a
1 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,7 @@ import re
|
|||
import aiohttp
|
||||
from dis_snek import InteractionContext, Scale, Snake
|
||||
from dis_snek.ext.paginators import Paginator
|
||||
from dis_snek.models.discord.components import ActionRow, Button, ButtonStyles
|
||||
from dis_snek.models.discord.embed import EmbedField
|
||||
from dis_snek.models.discord.user import Member, User
|
||||
from dis_snek.models.snek.application_commands import (
|
||||
|
@ -45,7 +46,14 @@ class CTCCog(Scale):
|
|||
@ctc2.subcommand(sub_cmd_name="about")
|
||||
@cooldown(bucket=Buckets.USER, rate=1, interval=30)
|
||||
async def _about(self, ctx: InteractionContext) -> None:
|
||||
await ctx.send("See https://completethecode.com for more information")
|
||||
components = [
|
||||
ActionRow(
|
||||
Button(style=ButtonStyles.URL, url="https://completethecode.com", label="More Info")
|
||||
)
|
||||
]
|
||||
await ctx.send(
|
||||
"See https://completethecode.com for more information", components=components
|
||||
)
|
||||
|
||||
@ctc2.subcommand(
|
||||
sub_cmd_name="pw",
|
||||
|
|
Loading…
Add table
Reference in a new issue