upd tweet
This commit is contained in:
parent
8cb4950d2b
commit
d7a5c6f617
1 changed files with 3 additions and 6 deletions
|
@ -3,10 +3,7 @@ import discord
|
||||||
from bots.discord.client import client
|
from bots.discord.client import client
|
||||||
from bots.discord.slash_parser import slash_parser
|
from bots.discord.slash_parser import slash_parser
|
||||||
|
|
||||||
tweet = client.create_group("tweet", "Get tweet image from tweet ID or link.")
|
@client.slash_command(description="Get tweet image from tweet ID or link.")
|
||||||
|
|
||||||
|
|
||||||
@tweet.command()
|
|
||||||
@discord.option(name="tweet", description="The tweet ID or tweet link.")
|
@discord.option(name="tweet", description="The tweet ID or tweet link.")
|
||||||
async def get(ctx: discord.ApplicationContext, tweet: str):
|
async def tweet(ctx: discord.ApplicationContext, tweet: str):
|
||||||
await slash_parser(ctx, tweet)
|
await slash_parser(ctx, tweet)
|
Reference in a new issue