當我的不和諧機器人引用 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')
1 回答

千萬里不及你
TA貢獻1784條經驗 獲得超9個贊
將鏈接包裹起來< >
await ctx.send('<https://www.reddit.com/search/?q=' + str(arg) + ">")
這是一個 Discord 功能,不僅僅是特定于編寫機器人。
添加回答
舉報
0/150
提交
取消