Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Server#bot #597

Merged
merged 2 commits into from
Jan 23, 2019
Merged

Add Server#bot #597

merged 2 commits into from
Jan 23, 2019

Conversation

z64
Copy link
Collaborator

@z64 z64 commented Jan 18, 2019

This allows for easier managing of the bot's own member on the given server for common tasks such as:

Changing the bots own nickname:

server.bot.nick = "new nick"

Managing the bots own roles:

server.bot.add_role(role)

Previously, one would have to do something such as server.member(bot.profile) or bot.profile.on(server), which can be confusing or a point of inconsistency in a codebase.

This allows for easier managing of the bot's own member on the given
server for common tasks such as:

Changing the bots own nickname:

    server.bot.nick = "new nick"

Managing the bots own roles:

    server.bot.add_role(role)

Previously, one would have to do something such as
server.member(bot.profile) or bot.profile.on(server), which can be
confusing or a point of inconsistency in a codebase.
@z64 z64 merged commit bafd219 into discordrb:master Jan 23, 2019
@z64 z64 deleted the server-bot branch January 23, 2019 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant