add a clarification

This commit is contained in:
Yuzu 2025-04-14 12:05:53 -05:00
parent ed968040fe
commit d449cdeea1

View File

@ -427,5 +427,8 @@ pub fn start(self: *Session, settings: struct {
log: Log, log: Log,
cache: cache.TableTemplate, cache: cache.TableTemplate,
}) !void { }) !void {
if (std.mem.startsWith(u8, settings.token, "Bot")) // save memory this way
std.debug.panic("Your token is invalid, try prepending Bot to it");
return self.start(settings); return self.start(settings);
} }