Skip to content

Commit

Permalink
Update testData.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Sep 23, 2024
1 parent 534f855 commit 7da8f23
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions src/testData.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,32 @@ export const TEST_DATA = {
permissions: "0",
flags: 0,
},
MEMBER_ADMIN: {
user: {
id: "301655085954367490",
username: "test",
discriminator: "0001",
avatar: null,
bot: false,
system: false,
mfa_enabled: false,
locale: "en-US",
verified: false,
email: null,
flags: 0,
premium_type: 0,
public_flags: 0,
},
nick: null,
roles: ["123452789012345678"],
joined_at: "2021-01-01T00:00:00.000Z",
premium_since: null,
deaf: false,
mute: false,
pending: false,
permissions: "0",
flags: 0,
},
EVENT_ID: "123456789012345678",
ROLE_ID: "123452789012345678",
ATTACHMENT: {
Expand Down Expand Up @@ -477,6 +503,30 @@ export const TEST_DATA = {
mute: false,
pending: false,
},
CLIENT_MEMBER_ADMIN: {
user: {
id: "704802632660943089",
username: "quark",
discriminator: "0001",
avatar: null,
bot: false,
system: false,
mfa_enabled: false,
locale: "en-US",
verified: false,
email: null,
flags: 0,
premium_type: 0,
public_flags: 0,
},
nick: null,
roles: ["123452789012345678"],
joined_at: "2021-01-01T00:00:00.000Z",
premium_since: null,
deaf: false,
mute: false,
pending: false,
},
ROLE_ADMIN: {
id: "123452789012345678",
name: "admin",
Expand Down Expand Up @@ -1071,6 +1121,27 @@ export const TEST_MEMBERS = {
});
return member;
},
EXECUTOR_MEMBER: (client) => {
const member = new Member(client, TEST_DATA.MEMBER_ADMIN, {
userId: TEST_DATA.MEMBER_ADMIN.user.id,
guildId: TEST_DATA.GUILD_ID,
});
return member;
},
TARGET_MEMBER: (client) => {
const member = new Member(client, TEST_DATA.MEMBER, {
userId: TEST_DATA.MEMBER.user.id,
guildId: TEST_DATA.GUILD_ID,
});
return member;
},
CLIENT_MEMBER_1: (client) => {
const member = new Member(client, TEST_DATA.CLIENT_MEMBER_ADMIN, {
userId: TEST_DATA.CLIENT_MEMBER_ADMIN.user.id,
guildId: TEST_DATA.GUILD_ID,
});
return member;
},
};

export const TEST_MESSAGES = {
Expand Down

0 comments on commit 7da8f23

Please sign in to comment.