Commit 6ca6c4db authored by nanahira's avatar nanahira

fix

parent e340d77c
......@@ -170,7 +170,7 @@ export const PutGuild = koishiRegistrar.decorateCommandPut(
export const PutUserName = koishiRegistrar.decorateCommandPut(
(data, useDatabase?: boolean) => {
const { argv } = data;
if (useDatabase) {
if (useDatabase !== false) {
const user = argv.session.user as User.Observed<'name'>;
if (user?.name) {
return user?.name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment