discord.js の setActivity のまとめです。
ステータスの設定などにご利用ください。
目次
Playing (プレイ中)
client.on("ready", () => {
client.user.setActivity({ name: "げ〜む", type: ActivityType.Playing });
});
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0408.jpeg)
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0410-204x300.jpeg)
Watching (視聴中)
client.on("ready", () => {
client.user.setActivity({ name: "げ〜む", type: ActivityType.Watching });
});
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0411.jpeg)
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0412-209x300.jpeg)
Listening (再生中)
client.on("ready", () => {
client.user.setActivity({ name: "げ〜む", type: ActivityType.Listening });
});
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0413.jpeg)
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0414-213x300.jpeg)
Streaming (配信中)
client.on("ready", () => {
client.user.setActivity({ name: "げ〜む", type: ActivityType.Streaming });
});
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0415.jpeg)
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0416-210x300.jpeg)
Competing (参戦中)
client.on("ready", () => {
client.user.setActivity({ name: "げ〜む", type: ActivityType.Competing });
});
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0417.jpeg)
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0418-210x300.jpeg)
Custom (カスタムステータス)
client.on("ready", () => {
client.user.setActivity({ name: "げ〜む", type: ActivityType.Custom });
});
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0419.jpeg)
![](https://tokoshi.net/wp-content/uploads/2023/11/IMG_0420-212x300.jpeg)
コメント