shardlab / discordrb

Discord API for Ruby
MIT License
536 stars 98 forks source link

chore: V4.0 fully remove user account methods #286

Open Droid00000 opened 2 weeks ago

Droid00000 commented 2 weeks ago

Summary

Separates out the removal of user account login related changes in the previous 4.0 commit into their own commit. I noticed a few other things related to user accounts, so I've attempted to deprecate them.

Removed

Discordrb::API.login Discordrb::API.logout Discordrb::Bot.process_token Discordrb::API.validate_token — This used the old /auth/login route. Discordrb::API.acknowledge_message — This endpoint is not usable by bot accounts type parameter on constructor for bot object. — Pointless to keep since only bot accounts are supported. OP: 5 — The comments say that a bot should never send this OP code, and I can't find anything about in the docs. This seems to be something different than voice OP 5.

Setting the status via the REST API is no longer supported so the following have been removed:

Discordrb::Profile.online Discordrb::Profile.idle Discordrb::Profile.dnd Discordrb::Profile.invisible

Updated

Updated the way we process the bot token to reflect what you've done with the API client. (This allows use to remove the process_token method)