3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 14:11:50 +00:00

resolveRoleId: fix return type

This commit is contained in:
Dragory 2020-01-12 11:39:26 +02:00
parent c1b7967d10
commit a0881e8298

View file

@ -243,7 +243,7 @@ export class ZeppelinPlugin<TConfig extends {} = IBasePluginConfig> extends Plug
* In the event of duplicate role names, this function will return the first one it comes across. * In the event of duplicate role names, this function will return the first one it comes across.
* @param roleResolvable * @param roleResolvable
*/ */
async resolveRoleId(roleResolvable: string): Promise<string> { async resolveRoleId(roleResolvable: string): Promise<string | null> {
const roleId = await resolveRoleId(this.bot, this.guildId, roleResolvable); const roleId = await resolveRoleId(this.bot, this.guildId, roleResolvable);
return roleId; return roleId;
} }