public async Task setPrefix(params string[] command) { p.doAction(Context.User, Context.Guild.Id, Program.Module.Settings); if (Context.User.Id != Context.Guild.OwnerId) { await ReplyAsync(Sentences.onlyOwnerStr(Context.Guild.Id, Context.Guild.OwnerId)); } else { if (command.Length == 0) { p.prefixs[Context.Guild.Id] = ""; File.WriteAllText("Saves/Servers/" + Context.Guild.Id + "/prefix.dat", ""); await ReplyAsync(Sentences.prefixRemoved(Context.Guild.Id)); } else { string prefix = Program.addArgs(command); p.prefixs[Context.Guild.Id] = prefix; File.WriteAllText("Saves/Servers/" + Context.Guild.Id + "/prefix.dat", prefix); await ReplyAsync(Sentences.doneStr(Context.Guild.Id)); } } }