Apply suggestions from code review

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
Nils 2021-08-15 22:02:18 +02:00 committed by GitHub
parent 1c8a223264
commit 99c8dbabb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -183,7 +183,7 @@ export const ModActionsPlugin = zeppelinGuildPlugin<ModActionsPluginType>()({
},
hasMutePermission(pluginData) {
return (member: GuildMember, channelId: string) => {
return (member: GuildMember, channelId: Snowflake) => {
return hasMutePermission(pluginData, member, channelId);
};
},

View file

@ -167,13 +167,13 @@ export const UtilityPlugin = zeppelinGuildPlugin<UtilityPluginType>()({
},
userInfo(pluginData) {
return (userId: string, requestMemberId?: string) => {
return (userId: Snowflake, requestMemberId?: Snowflake) => {
return getUserInfoEmbed(pluginData, userId, false, requestMemberId);
};
},
hasPermission(pluginData) {
return (member: GuildMember, channelId: string, permission: string) => {
return (member: GuildMember, channelId: Snowflake, permission: string) => {
return hasPermission(pluginData, member, channelId, permission);
};
},