MCPcopy Create free account
hub / github.com/esmBot/esmBot / setPrefix

Method setPrefix

src/database/sqlite.ts:242–245  ·  view source on GitHub ↗
(prefix: string, guild: string)

Source from the content-addressed store, hash-verified

240 }
241
242 async setPrefix(prefix: string, guild: string) {
243 this.connection.prepare("UPDATE guilds SET prefix = ? WHERE guild_id = ?").run(prefix, guild);
244 prefixCache.set(guild, prefix);
245 }
246
247 async getGuild(query: string): Promise<DBGuild> {
248 // SQLite does not support arrays, so instead we convert them from strings

Callers 1

runMethod · 0.45

Calls 2

runMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected