Skip to content

Commit 50c234d

Browse files
v7.2.2 - made admin commands only display for admins, fixed descriptions in birthday commands
Merge pull request #15 from rarDevelopment/dev
2 parents 3a71b23 + c02f61b commit 50c234d

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

TimeZoneBot/Commands/BirthdayAllCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public BirthdayAllCommand(IBirthdayBusinessLayer birthdayBusinessLayer,
2424
_logger = logger;
2525
}
2626

27-
[SlashCommand("birthday-all", "Get the birthday for the specified user in their time zone.")]
27+
[SlashCommand("birthday-all", "Get the birthdays for all users.")]
2828

2929
public async Task BirthdayAllSlashCommand(
3030
[Summary("sort-by", "The method by which to sort the birthday list (defaults to Alphabetical sort by username)")] BirthdaySortOrder sortBy = BirthdaySortOrder.Alphabetical

TimeZoneBot/Commands/BirthdayCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public BirthdayCommand(IBirthdayBusinessLayer birthdayBusinessLayer,
2121
_logger = logger;
2222
}
2323

24-
[SlashCommand("birthday", "Get the birthday for the specified user in their time zone.")]
24+
[SlashCommand("birthday", "Get the birthday for the specified user.")]
2525

2626
public async Task BirthdaySlashCommand(
27-
[Summary("User", "The user whose current time will be shown")]
27+
[Summary("User", "The user whose birthday will be shown")]
2828
IUser user)
2929
{
3030
var member = Context.Guild.Users.FirstOrDefault(u => u.Id == Context.User.Id);

TimeZoneBot/Commands/SetDefaultTimeZoneCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public SetDefaultTimeZoneCommand(IConfigurationBusinessLayer configurationBusine
1919
_logger = logger;
2020
}
2121

22+
[DefaultMemberPermissions(GuildPermission.Administrator)]
2223
[SlashCommand("set-default-time-zone", "Set the default time zone for birthday checks when members have not set their time zone.")]
2324
public async Task SetDefaultTimeZoneSlashCommand(
2425
[Summary("time-zone", "Time Zone ID (visit https://rardk64.com/timezones/ and set your time zone there).")] string timeZoneName

TimeZoneBot/Commands/SetReactionsEnabledCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public SetReactionsEnabledCommand(IConfigurationBusinessLayer configurationBusin
1818
_logger = logger;
1919
}
2020

21+
[DefaultMemberPermissions(GuildPermission.Administrator)]
2122
[SlashCommand("set-reactions", "Set time reactions on/off.")]
2223
public async Task SetReactionsEnabledSlashCommand(
2324
[Summary("enabled", "True for ON, False for OFF")] bool isEnabled

TimeZoneBot/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Version": {
3-
"VersionNumber": "7.2.1"
3+
"VersionNumber": "7.2.2"
44
},
55
"Discord": {
66
"BotToken": "token",

0 commit comments

Comments
 (0)