Update to Knub30.0.0-beta.37 and Eris 0.15, first pass
This commit is contained in:
parent
84da543205
commit
f6be4f4af6
133 changed files with 6507 additions and 380 deletions
|
@ -1,11 +1,11 @@
|
|||
import { TSelfGrantableRoleEntry, SelfGrantableRolesPluginType } from "../types";
|
||||
import { GuildPluginData } from "knub";
|
||||
|
||||
export function getApplyingEntries(
|
||||
export async function getApplyingEntries(
|
||||
pluginData: GuildPluginData<SelfGrantableRolesPluginType>,
|
||||
msg,
|
||||
): TSelfGrantableRoleEntry[] {
|
||||
const config = pluginData.config.getForMessage(msg);
|
||||
): Promise<TSelfGrantableRoleEntry[]> {
|
||||
const config = await pluginData.config.getForMessage(msg);
|
||||
return Object.entries(config.entries)
|
||||
.filter(
|
||||
([k, e]) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue