第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

Python/Discord 當(dāng)我嘗試讓 python 獲取不和諧用戶的用戶 ID 時,它什么也不做

Python/Discord 當(dāng)我嘗試讓 python 獲取不和諧用戶的用戶 ID 時,它什么也不做

慕村9548890 2023-06-20 14:07:01
這是使用 userID 的代碼:if message.content == "MMO start":    dir = r'C:\\Users\\User\Desktop\MMOProfiles'    MessageAuthor = str(userID)    newpath = os.path.join(dir,MessageAuthor)    doesExist = os.path.exists(newpath)    if doesExist == False:        await message.channel.send("Creating profile")        os.makedirs(newpath)    if doesExist == True:        await message.channel.send("You already have a profile")這是定義 userID 的函數(shù):async def UserID(ctx):    userID = ctx.author.id
查看完整描述

1 回答

?
滄海一幻覺

TA貢獻(xiàn)1824條經(jīng)驗 獲得超5個贊

用戶 ID 已在userID您可以鍵入print(userID)以在終端中查看的內(nèi)部。



查看完整回答
反對 回復(fù) 2023-06-20
  • 1 回答
  • 0 關(guān)注
  • 156 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號