Apply suggestions from code review
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
1c8a223264
commit
99c8dbabb7
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
};
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue