瀏覽代碼

Including role name in log message

master
Rocketsoup 1 年之前
父節點
當前提交
6f17218eb1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      rocketbot/cogs/logcog.py

+ 1
- 1
rocketbot/cogs/logcog.py 查看文件

643
 
643
 
644
 		if len(changes) == 0:
644
 		if len(changes) == 0:
645
 			return
645
 			return
646
-		text = 'Role updated. Changes:\n'
646
+		text = f'Role **{after.name}** updated. Changes:\n'
647
 		text += '* ' + '\n* '.join(changes)
647
 		text += '* ' + '\n* '.join(changes)
648
 		bot_message = BotMessage(guild, text, BotMessage.TYPE_LOG)
648
 		bot_message = BotMessage(guild, text, BotMessage.TYPE_LOG)
649
 		await bot_message.update()
649
 		await bot_message.update()

Loading…
取消
儲存