亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

當我的不和諧機器人引用 Reddit 時,如何不顯示這個無用的小部件

當我的不和諧機器人引用 Reddit 時,如何不顯示這個無用的小部件

九州編程 2023-10-18 20:38:57
當我的不和諧機器人引用 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 功能,不僅僅是特定于編寫機器人。


查看完整回答
反對 回復 2023-10-18
  • 1 回答
  • 0 關注
  • 132 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號