Archived
1
0
Fork 0

upd tweet

This commit is contained in:
多羅狼 2023-12-17 23:05:23 +08:00 committed by GitHub
parent 8cb4950d2b
commit d7a5c6f617
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,7 @@ import discord
from bots.discord.client import client
from bots.discord.slash_parser import slash_parser
tweet = client.create_group("tweet", "Get tweet image from tweet ID or link.")
@tweet.command()
@client.slash_command(description="Get tweet image from tweet ID or 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)