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

getRoleId #8

Closed
ra237 opened this issue Mar 7, 2022 · 0 comments
Closed

getRoleId #8

ra237 opened this issue Mar 7, 2022 · 0 comments
Assignees
Labels
refactor Everything that has to do with refactoring

Comments

@ra237
Copy link
Owner

ra237 commented Mar 7, 2022

private getGuildId(ctx: CommandContext): string {
if(typeof ctx.guild?.id === 'undefined') {
throw new TypeError("guildId cannot be undefined.")
}
return ctx.guild?.id
}

Create a similar method for roleId.

@ra237 ra237 added the refactor Everything that has to do with refactoring label Mar 7, 2022
@ra237 ra237 added this to To do in Twitch Harmony via automation Mar 7, 2022
@ra237 ra237 self-assigned this Mar 7, 2022
@ra237 ra237 moved this from To do to In progress in Twitch Harmony Mar 7, 2022
@ra237 ra237 closed this as completed in 7229e70 Mar 7, 2022
Twitch Harmony automation moved this from In progress to Done Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Everything that has to do with refactoring
Projects
Development

No branches or pull requests

1 participant