3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

discord.pyでステータス(視聴中)をする方法

Last updated at Posted at 2021-05-30

こんにちは
前回discord.pyでステータス(プレイ中)をする方法を投稿しました
discord.pyでステータス(プレイ中)の記事はこちらから

動作環境

Python 3.8以上
discord.py 1.5以上

コード

watching.py
import discord

client = discord.Client(intents=discord.Intents.all())

# or, for watching:# neme='内容',
activity = discord.Activity(name='TEST', type=discord.ActivityType.watching)
client = discord.Client(activity=activity)
# Discordに接続
client.run("TOKEN")

それでBotを起動してみると
image.png
こうなると成功です!
良いBot作成ライフを

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?