猿问

当我的不和谐机器人引用 Reddit 时,如何不显示这个无用的小部件

当我的不和谐机器人引用 reddit 时,如何不显示这个无用的小部件:

是否可以让这个小部件不显示?


这是我的代码:


    @client.command()

async def reddit(ctx, arg, arg2 = None):

    if not arg2:

        await ctx.send('https://www.reddit.com/search/?q=' + str(arg))

        await ctx.send('`^ Searching for` ' + str(arg) + '`... ^`')

    if arg2:

        await ctx.send('https://www.reddit.com/' + str(arg2) + '/search?q=' + str(arg) + '&restrict_sr=1')


九州编程
浏览 109回答 1
1回答

千万里不及你

将链接包裹起来< >await&nbsp;ctx.send('<https://www.reddit.com/search/?q='&nbsp;+&nbsp;str(arg)&nbsp;+&nbsp;">")这是一个 Discord 功能,不仅仅是特定于编写机器人。
随时随地看视频慕课网APP

相关分类

Python
我要回答