Skip to content

Commit

Permalink
fix: add ActivityType.CUSTOM to list of valid activities for bots
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS committed Feb 21, 2024
1 parent ebe2e1a commit dcaa7c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions interactions/api/gateway/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ async def change_presence(
ActivityType.LISTENING,
ActivityType.WATCHING,
ActivityType.COMPETING,
ActivityType.CUSTOM,
]:
self.wrapped_logger(
logging.WARNING, f"Activity type `{ActivityType(activity.type).name}` may not be enabled for bots"
Expand Down

0 comments on commit dcaa7c6

Please sign in to comment.