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

Fix rubocop offenses from modals #191

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

idk837384
Copy link
Contributor

Summary

This PR fixes all the rubocop offenses caused by the new modals feature added to discordrb

Added

Changed

Deprecated

Removed

Fixed

~ Use ENV.fetch('DISCORDRB_TOKEN') instead of ENV['DISCORDRB_TOKEN']
~ Pass &:components as an argument to flat_map instead of a block

@Nekka-Lucifer
Copy link

As raised by Devonte in discord, this change would set the server id to the bot token.

@idk837384
Copy link
Contributor Author

Oops, I'm not sure how I didn't notice that but I think I fixed it now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants